<?php

namespace App\Http\Requests\Api;

use Illuminate\Foundation\Http\FormRequest;

class IdMustRequest extends FormRequest
{
    public function rules()
    {
        return [
            'id' => 'required|numeric'
        ];
    }

    public function messages()
    {
        return [
            'id.required' => 'ID必填',
            'id.numeric' => 'ID必须是数字',
        ];
    }
}
